<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>DataExtractor: E:/cas/cas.0.7.0/sfw/src/MinConsole/MinConsole.0.8.0/MinConsole/Gaf/Utils/ErrorHandler.cs Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>E:/cas/cas.0.7.0/sfw/src/MinConsole/MinConsole.0.8.0/MinConsole/Gaf/Utils/ErrorHandler.cs</h1>  </div>
</div>
<div class="contents">
<a href="../../d0/dfa/ErrorHandler_8cs.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿using System;
<a name="l00002"></a>00002 <span class="keyword">using</span> System.Collections.Generic;
<a name="l00003"></a>00003 <span class="keyword">using</span> System.Linq;
<a name="l00004"></a>00004 <span class="keyword">using</span> System.Text;
<a name="l00005"></a>00005 <span class="keyword">using</span> MinConsole.Gaf.Utils.Log;
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="../../db/d7a/namespaceMinConsole_1_1Gaf_1_1Utils.html">00007</a> <span class="keyword">namespace </span>MinConsole.Gaf.Utils
<a name="l00008"></a>00008 {
<a name="l00009"></a><a class="code" href="../../d5/d2f/classMinConsole_1_1Gaf_1_1Utils_1_1ErrorHandler.html">00009</a>     <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../d5/d2f/classMinConsole_1_1Gaf_1_1Utils_1_1ErrorHandler.html">ErrorHandler</a>
<a name="l00010"></a>00010     {
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 
<a name="l00013"></a>00013         <span class="comment">//final catch </span>
<a name="l00014"></a><a class="code" href="../../d5/d2f/classMinConsole_1_1Gaf_1_1Utils_1_1ErrorHandler.html#af8c9c015736a24069de36532a8c3000d">00014</a>         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> Trap(System.Diagnostics.StackTrace st, Exception ex)
<a name="l00015"></a>00015         {
<a name="l00016"></a>00016             <span class="keywordtype">string</span> methodName = st.GetFrame(1).GetMethod().Name;
<a name="l00017"></a>00017             <span class="keywordtype">string</span> className = st.GetFrame(1).GetFileName();
<a name="l00018"></a>00018             <span class="keywordtype">int</span> lineNumber = st.GetFrame(1).GetFileLineNumber();
<a name="l00019"></a>00019 
<a name="l00020"></a>00020             <a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html">Logger</a>.<a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html#a5c10f1454b60f5feeba5b75251f291d3" title="Logs a message to the predifiend in the app settings logdir.">Debug</a>(<span class="stringliteral">&quot;The following exception occured &quot;</span> + ex.Message);
<a name="l00021"></a>00021             <a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html">Logger</a>.<a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html#a5c10f1454b60f5feeba5b75251f291d3" title="Logs a message to the predifiend in the app settings logdir.">Debug</a>(<span class="stringliteral">&quot;className &quot;</span> + className);
<a name="l00022"></a>00022             <a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html">Logger</a>.<a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html#a5c10f1454b60f5feeba5b75251f291d3" title="Logs a message to the predifiend in the app settings logdir.">Debug</a>(<span class="stringliteral">&quot;methodName &quot;</span> + methodName);
<a name="l00023"></a>00023             <a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html">Logger</a>.<a class="code" href="../../d3/d03/classMinConsole_1_1Gaf_1_1Utils_1_1Log_1_1Logger.html#a5c10f1454b60f5feeba5b75251f291d3" title="Logs a message to the predifiend in the app settings logdir.">Debug</a>(<span class="stringliteral">&quot;lineNumber &quot;</span> + lineNumber);
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         }<span class="comment">//eof method </span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 
<a name="l00028"></a>00028     }
<a name="l00029"></a>00029 } <span class="comment">//eof namespace </span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sat Jan 22 2011 22:24:47 for DataExtractor by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
